package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.OrderBean;
import com.molichuxing.services.infrastructure.dto.response.OrderSubcompanyDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends RootMapper<OrderBean> {

    /**
     * 根据订单号获取
     *
     * @param orderCode 订单号
     * @return
     */
    OrderBean getByOrderCode(Long orderCode);

    List<OrderSubcompanyDto> getOrderAndSubcompany(@Param("orderCodes") List<Long> orderCodes);
}